home *** CD-ROM | disk | FTP | other *** search
/ MacWarehouse Macintosh Games / MacWarehouse Macintosh Games.iso / AMBER demo / AMBER-Journeys Beyond™ Patch 1c / 00108.ls < prev    next >
Encoding:
Text File  |  1997-02-19  |  991 b   |  27 lines

  1. on exitFrame
  2.   global oPuppeteer, oStoryteller, gScanFinish, domainIsReady
  3.   set oldDelim to the itemDelimiter
  4.   set the itemDelimiter to ":"
  5.   repeat with cNum in [2351, 2386, 2390, 2380, 2381, 2391, 2341]
  6.     set fullPath to the fileName of cast cNum
  7.     set fName to the last item in fullPath
  8.     set newPath to "AMBER-Journeys Beyond‚Ñ¢ (A):ROXY:movies:" & fName
  9.     set the fileName of cast cNum to newPath
  10.   end repeat
  11.   set the itemDelimiter to oldDelim
  12.   repeat with i = 1 to 48
  13.     puppetSprite(i, 1)
  14.   end repeat
  15.   set scanStatus to getState(oStoryteller, #PKscanStatus)
  16.   if getPos([#Wait1min, #Wait2min, #Wait3min, #Wait4min, #Wait5min], scanStatus) then
  17.     set minutesRemaining to getPos([#Wait1min, #Wait2min, #Wait3min, #Wait4min, #Wait5min], scanStatus)
  18.     set gScanFinish to the ticks + (minutesRemaining * 3600)
  19.     put "new gScanFinish = " & gScanFinish
  20.   end if
  21.   initInventory()
  22.   set domainIsReady to 1
  23.   restoreSounds(#fadeIn)
  24.   closePatchFile()
  25.   go("bigLoop")
  26. end
  27.